<!DOCTYPE html>
<html>
<head>
    <title>微信发送消息</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                #if($shiro.hasPermission("sendmsg:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("sendmsg:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("sendmsg:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="sendMsg" :rules="ruleValidate" :label-width="80">
            <Form-item label="发送微信账号ID" prop="wxAccId">
                <i-input v-model="sendMsg.wxAccId" placeholder="发送微信账号ID"/>
            </Form-item>
            <Form-item label="类型" prop="type">
                <i-input v-model="sendMsg.type" placeholder="类型"/>
            </Form-item>
            <Form-item label="文本内容" prop="content">
                <i-input v-model="sendMsg.content" placeholder="文本内容"/>
            </Form-item>
            <Form-item label="音频/视频/文件URL" prop="fileUrl">
                <i-input v-model="sendMsg.fileUrl" placeholder="音频/视频/文件URL"/>
            </Form-item>
            <Form-item label="发送对象类型" prop="aimtype">
                <i-input v-model="sendMsg.aimtype" placeholder="发送对象类型"/>
            </Form-item>
            <Form-item label="发送对象关键字" prop="aimMemberKeyword">
                <i-input v-model="sendMsg.aimMemberKeyword" placeholder="发送对象关键字"/>
            </Form-item>
            <Form-item label="创建时间" prop="createDate">
                <i-input v-model="sendMsg.createDate" placeholder="创建时间"/>
            </Form-item>
            <Form-item label="发送时间" prop="sendDate">
                <i-input v-model="sendMsg.sendDate" placeholder="发送时间"/>
            </Form-item>
            <Form-item label="状态" prop="status">
                <i-input v-model="sendMsg.status" placeholder="状态"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/wx/sendmsg.js?_${date.systemTime}"></script>
</body>
</html>